import request from '@/config/axios'

export interface MemberReportVO {
  id: number
  no: string
  reportId: number
  reportName: string
  quiltReport: number
  quiltName: string
  submitTime: Date
  reason: string
  content: string
  evidenceImg: string
  evidenceVideo: string
  mobile: string
  status: number
}

// 查询相亲交友举报列表
export const getMemberReportPage = async (params) => {
  return await request.get({ url: `/blind/member-report/page`, params })
}

// 查询相亲交友举报详情
export const getMemberReport = async (id: number) => {
  return await request.get({ url: `/blind/member-report/get?id=` + id })
}

// 新增相亲交友举报
export const createMemberReport = async (data: MemberReportVO) => {
  return await request.post({ url: `/blind/member-report/create`, data })
}

// 修改相亲交友举报
export const updateMemberReport = async (data: MemberReportVO) => {
  return await request.put({ url: `/blind/member-report/update`, data })
}

// 删除相亲交友举报
export const deleteMemberReport = async (id: number) => {
  return await request.delete({ url: `/blind/member-report/delete?id=` + id })
}

// 导出相亲交友举报 Excel
export const exportMemberReport = async (params) => {
  return await request.download({ url: `/blind/member-report/export-excel`, params })
}
